@charset "utf-8";

*{
    padding: 0;
    margin: 0;
}

.center{
    width: 60%;
    height: 500px;
    margin: 100px auto;
    /*background: #7d7d7d;*/
    position: relative;
}

img{
    height: 200px;
    float: left;
    transition: all 0.6s ease-in-out 0s;
}

img:nth-of-type(odd){
    transform: rotate(30deg);
}

img:nth-of-type(even){
    transform: rotate(-30deg);
}

img:nth-of-type(1){
    position: absolute;
    top: 280px;
    left: 220px;}

img:nth-of-type(2){
    position: absolute;
    top: 0px;
    left:0px;
}

img:nth-of-type(3){
    position: absolute;
    top: 200px;
    left: 380px;
}

img:nth-of-type(4){
    position: absolute;
    top: 20px;
    left: 400px;
}

img:nth-of-type(5){
    position: absolute;
    top: 360px;
    left: -40px;
}

img:nth-of-type(6){
     position: absolute;
     top: 100px;
     left: 20px;
 }

img:nth-of-type(7){
    position: absolute;
    top: 2px;
    left: 300px;
}

img:nth-of-type(8){
    position: absolute;
    top: 220px;
    left: 380px;
}

img:nth-of-type(odd):hover{
    transform: rotate(360deg);
    z-index: 10;
    padding: 10px;
    border: 1px solid white;
    box-shadow: 0 0 10px wheat;
    border-radius: 10px;
}

img:nth-of-type(even):hover{
    transform: rotate(360deg);
    z-index: 10;
    padding: 10px;
    border: 1px solid white;
    box-shadow: 0 0 10px wheat;
    border-radius: 10px;
}